package edu.webtech.project.client.view;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.ScrollPanel;

public class MainLayout extends Composite {

	private DockLayoutPanel mainLayout = new DockLayoutPanel(Unit.EM);
	private ScrollPanel contentPanel   = new ScrollPanel();
	private HeaderLayout header        = new HeaderLayout();
	private FooterLayout footer        = new FooterLayout();
	private LoginPage loginPage        = new LoginPage(this);

	public MainLayout() {
		initWidget(mainLayout);

		mainLayout.addNorth(header, 6);
		mainLayout.addSouth(footer, 3);
		contentPanel.add(loginPage);
		mainLayout.add(contentPanel);

	}

	public ScrollPanel getContentPanel() {
		return contentPanel;
	}
	
	public DockLayoutPanel getMainLayout() {
		return mainLayout;
	}

}
